package org.java.common.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author WHQ
 * @version 1.0
 * @date 2022-2-21 0021 下午 4:42
 * 购物车实体类
 */
@AllArgsConstructor
@NoArgsConstructor
public class Cart implements Serializable {
    /**
     * 标识是哪一个用户的购物信息
     */
    private Long userId;
    /**
     * 购物的商品编号
     */
    private Long skuId;
    /**
     * 商品的标题
     */
    private String title;
    /**
     * 商品的图片路径
     */
    private String image;
    /**
     * 商品的单价(分为单位)
     */
    private Long price;
    /**
     * 商品购买的数量
     */
    private Integer num;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }
}
